if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
    set(REQ esp_driver_gpio esp_driver_i2c)
else()
    set(REQ driver)
endif()


idf_component_register(
    SRCS "qma6100p.c"
    INCLUDE_DIRS "include"
    REQUIRES ${REQ}
)

include(package_manager)
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
